hip.util.array

Undocumented in source.

Members

Functions

array
ForeachType!(T)[] array(T range)
Undocumented in source. Be warned that the author may not have intended to support it.
binarySearch
int binarySearch(T[] arr, T element)

Should work only for numerics

contains
bool contains(T[] arr, T val)
Undocumented in source. Be warned that the author may not have intended to support it.
contains
bool contains(T[] tuple, V val)
Undocumented in source. Be warned that the author may not have intended to support it.
contains
bool contains(T[] arr, Q val)

Compare a array of structures member with a target value

contains
bool contains(T[] arr, Q val)

Compare two different structures accessing different members

indexOf
int indexOf(T[] arr, Q element, int startIndex)

Uses accessor on the array to find an element

indexOf
int indexOf(T[] arr, T element, int startIndex)

Returns index of element if it finds or returns -1 if not

indexOf
int indexOf(T tuple, V value)

Index of for tuples

isEmpty
bool isEmpty(T[] arr)
Undocumented in source. Be warned that the author may not have intended to support it.
join
string join(T[] arr, string separator)
Undocumented in source. Be warned that the author may not have intended to support it.
join
string join(T[] arr, char separator)
Undocumented in source. Be warned that the author may not have intended to support it.
lastIndexOf
int lastIndexOf(T[] arr, T element, int startIndex)
Undocumented in source. Be warned that the author may not have intended to support it.
popFront
bool popFront(T[] arr, T val)
Undocumented in source. Be warned that the author may not have intended to support it.
popFront
bool popFront(T[] arr)
Undocumented in source. Be warned that the author may not have intended to support it.
printArrayWithoutValues
void printArrayWithoutValues(T[] arr, T[] ignoreValues)
Undocumented in source. Be warned that the author may not have intended to support it.
remove
bool remove(T[] arr, T val)
Undocumented in source. Be warned that the author may not have intended to support it.
remove
bool remove(T[] arr, const(T)* val)
Undocumented in source. Be warned that the author may not have intended to support it.
swapAt
bool swapAt(T[] arr, int index1, int index2)
Undocumented in source. Be warned that the author may not have intended to support it.
swapElementsFromArray
bool swapElementsFromArray(T[] arr, T element1, T element2)

Returns if swap was succesful

Meta